package com.itheima.service;

import com.itheima.pojo.User;
import com.itheima.vo.Result;

public interface UserService {
    //根据用户名查询用户
    public User findByUsername(String username);

    //注册
    public Result register(String username, String password);

    Result login(String username, String password);

    Result<User> getUserinfo();

    Result updateUser(User user);

    Result logout();
}
